package com.example.aop;


/**
 * @author yanzhao
 * @date 2022/6/2 17:11
 * @since 1.0.0
 */
public class ProxyFactory extends ProxyCreatorSupport {

    public ProxyFactory(Object target) {
        setTarget(target);
        setInterfaces(ClassUtils.getAllInterfaces(target));
    }

    public <T> T getProxy() {
        return (T) createAopProxy().getProxy();
    }

}
